<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <title>The console of isaac:lua</title>
</head>

<body>
    <div id="use_js">
        您的浏览器不支持或不兼容本页面使用的javascript，此页无法正常显示。请开启浏览器的Javascript功能或更换浏览器。您可以使用<a href='https://www.google.cn/chrome/'>Chrome</a>、<a href='http://www.firefox.com.cn/'>Firefox</a>、<a href='https://www.microsoft.com/zh-cn/edge'>Edge</a>等浏览器进行访问。
    </div>
    <div id="loading_div" style="display: none;">
        <div class="text-center">
            <div class="spinner-border" role="status">
                <span class="sr-only">Loading...</span>
            </div>
        </div>
    </div>
    <script>
        document.querySelector('#use_js').remove()
        document.querySelector('#loading_div').setAttribute('style', '')
    </script>
    <div id="js_content" class="container" style="display: none;">
    	<!-- nav bar(notes) -->
    	<div class="fixed-top float-right">
    		<div class="container">
    			<div class="border-bottom bg-light">
    				<div id="pastebin_area" style="display: none;">
    					<textarea class="form-control" id="pastebin_texts"></textarea>
    				</div>
    			</div>
				<div class="btn-group-vertical" style="float: right;margin-right: 10px">
		    		<button class="notes_btn btn btn-sm btn-link bg-light border border-top-0" style="border-top-right-radius:0;border-top-left-radius:0" onclick="$('#pastebin_area').slideToggle('fast')">
		    			notes
		    		</button>
	    		</div>
    		</div>
    	
    	</div>
    	<!-- content -->
        <h1>The console of isaac:lua <a class="badge badge-primary"
                href="https://github.com/frto027/consoleofisaaclua">@frto027</a></h1>
        <hr>
        <div class="alert alert-secondary" id='kbd_tip' role="alert">
            点击“<button class="copy_card btn btn-info btn-sm">copy</button>”将指令拷贝到剪贴板上，然后在游戏的控制台中使用 <kbd><kbd>ctrl</kbd>
                + <kbd>v</kbd></kbd> 快捷键粘贴。<hr/>
                点击“<button class="copy_card_lua btn btn-warning btn-sm">copy lua</button>”将指令的lua部分拷贝到剪贴板上，可以用来修改某些指令。
        </div>
        <div class="alert alert-info" id='copyright'>
            为防止滥用，特此声明：未经作者许可，严禁将此页及其数据、程序用于商业用途，网页程序的著作权归作者<a class="badge badge-primary"
                href="https://github.com/frto027/consoleofisaaclua">@frto027</a>所有，并保留追究责任的权利。网页中展示的程序著作权归其原作者所有，允许个人形式的转载交流，但一次性转载数量为二十条或以上的，必须逐一注明各指令作者，或统一标注本站来源以供查阅。<hr/>如果您希望，且有能力翻译此页为其它语言，本页已预留相关程序接口，请通过前述的github链接联系网站作者。
        </div>
        <div class="alert alert-light" role="alert">
            <!--<span class="s_new badge badge-success" style="display: none;">New</span> -->
            <table>
                <tbody>
                    <tr>
                        <td>
                            <span class="s_request badge badge-warning">Request</span>
                        </td>
                        <td>
                            <span id="request_desc">script is requesting</span>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span class="s_broken badge badge-dark">Broken</span>
                        </td>
                        <td>
                            <span id="broken_desc">script is useless</span>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span class="s_reset badge badge-success">Restart</span>
                        </td>
                        <td>
                            <span id="reset_desc">script needs restart</span>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span class="s_rep badge badge-success">Repetance</span>
                        </td>
                        <td>
                            <span id="rep_desc">script is in repetance</span>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="form-inline">
            <label class="sr-only" for="search_input">Search</label>
            <input type="text" class="form-control mb-2 mr-sm-2" id="search_input">

            <button id="search_btn" class="btn btn-primary mb-2">Search</button>
        </div>
        <div>
            <div id="template" class="card" style="margin: 5pt;">
                <div class="card-body">
                    <h5><span class="code_title">Unknown</span> <span class="s_new badge badge-success"
                            style="display: none;">New</span><span class="s_request badge badge-warning"
                            style="display: none;">Request</span><span class="s_broken badge badge-dark"
                            style="display: none;">Broken</span> <span class="s_reset badge badge-success"
                            style="display: none;">Restart</span><span class="s_rep badge badge-success"
                            style="display: none;">Repetance</span></h5>
                    <hr />
                    <p class="code_desc card-text">no desc <a href="#">more</a></p>
                    <pre><textarea class="codes form-control">Error</textarea></pre>

                    <button href="#" class="copy_card btn btn-info btn-sm">copy to console</button>
                    <button href="#" class="copy_card_note btn btn-warning btn-sm">copy to note</button>
                    <button href="#" class="copy_card_lua btn btn-secondary btn-sm">copy lua</button>
                    <button href="#" class="reset_card btn btn-link btn-sm">reset</button>
                    
                    <a href="#" class="code_ablout card-link" style="display: none;">no author</a>
                    <span class="copymark copymark_console badge badge-success" style="display: none;">copied console</span>
                    <span class="copymark copymark_lua badge badge-success" style="display: none;">copied lua</span>
                    <span class="copymark pastemark_lua badge badge-success" style="display: none;">note is pasted</span>
                    <div class="paste_note_btns">
                    	<button href="#" class="paste_note_btn btn btn-link btn-sm">用便签替换第一个打印helloworld</button>
                    </div>
                </div>
            </div>
        </div>

    </div>

    <script type="text/javascript" src="js/clipboard.min.js"></script>
    <script type="text/javascript" src="js/jquery-3.4.1.min.js"></script>
    <script src="js/bootstrap.bundle.min.js"></script>
    <script type="text/javascript">
        {
            let ld = (s,over)=>{
                let e = document.createElement('script')
                e.src = s
                e.addEventListener('load',over)
                e.addEventListener('error',over)
                document.head.appendChild(e)
                return ld
            }
            ld('data.js?t='+Math.floor(new Date().getTime()/(1000*60*60*4)),()=>{ /* update data per 4 hours */
            	ld('script.js?t='+Math.floor(new Date().getTime()/(1000*60*60*24)),()=>{ /* update script per day */
            		try{
			    		if(script_execute_over != true){
			    			throw 'err'
			    		}
			    	}catch(e){
			    		document.getElementsByTagName('body')[0].innerHTML = "页面脚本加载出错，请换一个浏览器进行访问。您可以使用<a href='https://www.google.cn/chrome/'>Chrome</a>、<a href='http://www.firefox.com.cn/'>Firefox</a>、<a href='https://www.microsoft.com/zh-cn/edge'>Edge</a>等浏览器进行访问。如果更换浏览器后依旧看到了这条消息，请联系作者解决并等待更新。"
			    	}
            	})
            })
        }
    </script>
</body>

</html>